package map.core;

public class DoubleRange {
   private double min;
    private double max;

    public DoubleRange(double min, double max) {
        this.min = min;
        this.max = max;
    }

    public double getMin() {
        return min;
    }

    public double getMax() {
        return max;
    }


    public double getWidth(){
        return this.max - this.min;
    }

    @Override
    public String toString() {
        return "DoubleRange{" +
                "min=" + min +
                ", max=" + max +
                '}';
    }
}
